From 79367d3545c2a0e885ab29844308d280e6dc22f2 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 18 Aug 2003 18:09:01 +0000 Subject: [PATCH] Fix crash when no descr available. --- gpsbabel/mapsource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/mapsource.c b/gpsbabel/mapsource.c index 6b4a9b08f..5ebc91894 100644 --- a/gpsbabel/mapsource.c +++ b/gpsbabel/mapsource.c @@ -257,7 +257,7 @@ mps_waypt_pr(const waypoint *wpt) icon = mps_find_icon_number_from_desc(wpt->icon_descr, MAPSOURCE); - if (get_cache_icon(wpt) && (strcmp(wpt->icon_descr, "Geocache Found") != 0)) { + if (get_cache_icon(wpt) && wpt->icon_descr && (strcmp(wpt->icon_descr, "Geocache Found") != 0)) { icon = mps_find_icon_number_from_desc(get_cache_icon(wpt), MAPSOURCE); } -- 2.30.2